package com.jame.basics.genericity.test2;

import java.util.List;

/**
 * @author : Jame
 * @date : 2020-12-31 21:33
 **/
public class Father<A,B> implements F<A,B> {



    public <E> E getMax(List<E> es){
        if(es==null || es.size()==0)
            return null;
        E e = es.get(0);
        if (e instanceof Integer) {
            //获取最大值操作...
        }
        if(e instanceof String){
            //获取最大值操作...
        }
        return null;
    }


}
